#ifndef REGISTER_H
#define REGISTER_H

#include <QDialog>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonObject>
#include <QJsonValue>
#include <QJsonDocument>
#include <QMessageBox>
#include<QDebug>

#define URL "http://43.139.152.135:8080"
#define WS_URL "ws://43.139.152.135:8080"

namespace Ui {
class Register;
}

class Register : public QDialog
{
    Q_OBJECT

public:
    explicit Register(QWidget *parent = nullptr);
    ~Register();

private slots:
    void on_pushButton_ok_clicked();

    void on_pushButton_quit_clicked();

    void on_checkBox_clicked(bool checked);

    void handle_resp();

private:
    Ui::Register *ui;

    QNetworkAccessManager* manager;
    QNetworkReply* response;
    QString resp;//收到的响应
};

#endif // REGISTER_H
